(function () {
  let arr = [
    {
      title: '设备总数',
      num: '2,190',
      iconColor: '#006cff',
    },
    {
      title: '季度新增',
      num: '1,190',
      iconColor: '#6acca3',
    },
    {
      title: '运营设备',
      num: '3,521',
      iconColor: '#6acca3',
    },
    {
      title: '异常设备',
      num: '108',
      iconColor: '#ed3f35',
    },
  ];

  arr.forEach(function (value) {
    let node = `<div class="item">
        <h4>${value.num}</h4>
        <span>
          <i class="icon-dot" style="color: ${value.iconColor}"></i>
          ${value.title}
        </span>
      </div>`;
    $('.overview .inner').append(node);
  });
})();
